package com.room.search.service.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.Instant;
import java.time.LocalDate;
import java.util.Objects;
import javax.validation.constraints.*;

/**
 * A DTO for the {@link com.room.search.domain.RoomRentBasic} entity.
 */
@ApiModel(description = "租房房屋信息外加表")
public class RoomRentBasicDTO implements Serializable {

    private Long id;

    /**
     * 维护时间
     */
    @ApiModelProperty(value = "维护时间")
    private LocalDate care;

    /**
     * 车位
     */
    @Size(max = 32)
    @ApiModelProperty(value = "车位")
    private String parking;

    /**
     * 用电
     */
    @Size(max = 32)
    @ApiModelProperty(value = "用电")
    private String electricity;

    /**
     * 租期
     */
    @Size(max = 32)
    @ApiModelProperty(value = "租期")
    private String lease;

    /**
     * 入住
     */
    @ApiModelProperty(value = "入住")
    private LocalDate occupancy;

    /**
     * 用水
     */
    @Size(max = 32)
    @ApiModelProperty(value = "用水")
    private String water;

    /**
     * 燃气
     */
    @Size(max = 32)
    @ApiModelProperty(value = "燃气")
    private String gas;

    /**
     * 创建者
     */
    @Size(max = 32)
    @ApiModelProperty(value = "创建者")
    private String createdBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Instant createdDate;

    /**
     * 最后修改者
     */
    @Size(max = 32)
    @ApiModelProperty(value = "最后修改者")
    private String lastModifiedBy;

    /**
     * 最后修改时间
     */
    @ApiModelProperty(value = "最后修改时间")
    private Instant lastModifiedDate;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public LocalDate getCare() {
        return care;
    }

    public void setCare(LocalDate care) {
        this.care = care;
    }

    public String getParking() {
        return parking;
    }

    public void setParking(String parking) {
        this.parking = parking;
    }

    public String getElectricity() {
        return electricity;
    }

    public void setElectricity(String electricity) {
        this.electricity = electricity;
    }

    public String getLease() {
        return lease;
    }

    public void setLease(String lease) {
        this.lease = lease;
    }

    public LocalDate getOccupancy() {
        return occupancy;
    }

    public void setOccupancy(LocalDate occupancy) {
        this.occupancy = occupancy;
    }

    public String getWater() {
        return water;
    }

    public void setWater(String water) {
        this.water = water;
    }

    public String getGas() {
        return gas;
    }

    public void setGas(String gas) {
        this.gas = gas;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Instant getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Instant createdDate) {
        this.createdDate = createdDate;
    }

    public String getLastModifiedBy() {
        return lastModifiedBy;
    }

    public void setLastModifiedBy(String lastModifiedBy) {
        this.lastModifiedBy = lastModifiedBy;
    }

    public Instant getLastModifiedDate() {
        return lastModifiedDate;
    }

    public void setLastModifiedDate(Instant lastModifiedDate) {
        this.lastModifiedDate = lastModifiedDate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof RoomRentBasicDTO)) {
            return false;
        }

        RoomRentBasicDTO roomRentBasicDTO = (RoomRentBasicDTO) o;
        if (this.id == null) {
            return false;
        }
        return Objects.equals(this.id, roomRentBasicDTO.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(this.id);
    }

    // prettier-ignore
    @Override
    public String toString() {
        return "RoomRentBasicDTO{" +
            "id=" + getId() +
            ", care='" + getCare() + "'" +
            ", parking='" + getParking() + "'" +
            ", electricity='" + getElectricity() + "'" +
            ", lease='" + getLease() + "'" +
            ", occupancy='" + getOccupancy() + "'" +
            ", water='" + getWater() + "'" +
            ", gas='" + getGas() + "'" +
            ", createdBy='" + getCreatedBy() + "'" +
            ", createdDate='" + getCreatedDate() + "'" +
            ", lastModifiedBy='" + getLastModifiedBy() + "'" +
            ", lastModifiedDate='" + getLastModifiedDate() + "'" +
            "}";
    }
}
